function IContainerTabOrders(container, item, options) {
  this._container = container;
  this._item = item;
  
  this._options = options;
  this._trackId = this._options.trackId;
  this._newTab = (options && options.newTab) ? options.newTab : false ;
  
  this._createElements();
}

IContainerTabOrders.prototype._createElements = function() {
  var table, tr, td, _self = this, unique = MiscUtils.unique();
  table = document.createElement('table');
  table.cellPadding = 0;
  table.cellSpacing= 0 ;
  table.style.width = (this._newTab) ? '770px' : '900px';
  table.style.marginLeft = '-1px';
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  for (var i = 0, il = this._item.length; i < il; i++) {
    var order = this._item[i];
    td = tr.insertCell(-1);
    td.style.height = '24px';
    td.style.cursor = 'pointer';
    td.style.backgroundImage = (this._trackId == order.trackId) ? 'url(images/common/left_h.png)' : 'url(images/common/left.png)';
    td.style.backgroundRpeat = 'no-repeat';
    td.style.width = '4px';
    
    td = tr.insertCell(-1);
    td.style.height = '24px';
    td.style.width = '100px';
    td.style.textAlign = 'center';
    td.style.cursor = 'pointer';
    td.style.fontSize = '15px';
    td.style.fontWeight = (this._trackId == order.trackId) ? 'bold':'normal';
    td.style.color = '#694247';
    td.style.backgroundImage = (this._trackId == order.trackId) ? 'url(images/common/middle_h.png)' : 'url(images/common/middle.png)';
    td.style.backgroundRpeat = 'repeat-x';
    td.id = unique + '_' + i + '_tab_div'; 
    
    td = tr.insertCell(-1);
    td.style.backgroundImage = (this._trackId == order.trackId) ? 'url(images/common/right_h.png)' : 'url(images/common/right.png)';
    td.style.backgroundRpeat = 'no-repeat';
    td.style.cursor = 'pointer';
    td.style.width = '4px';
    td.style.height = '24px';
  }
  td = tr.insertCell(-1);
  td.style.height = '24px';
  td.style.borderBottom = 'solid 1px #aca899'; 
  
  gui = GuiContainerTabOrders.instance(unique, this._item);

  new HandleContainerTabOrders(gui, this._item, this._options);
};